fixed raytracing