working on raytrace