fixing ray tracer