modified transmittedRay eqn in file