We propose a factor model for valuation of CDS, CDSI and CDO. The model is a first-passage distribution of Brownian motion continuous time-changed. The credit quality process is driven by a mean reverting Levy OU volatility process. The model is capable to reproduce the credit gap risk. FFT computational tools are developed to calculate the distribution of losses.