changed the ray tracer's task distribution method