most functions now working with ray tracer