refactored calls up to ray_tracing, stopped to wait for the decision of the type of call to ray_tracing