debugging in list and raytrace