fixed patches to RayTracer