raytracer optimised a bit