raytracing and updates