incorporating ray tracer