use the cos t o compute the diffuse factor