working with sphere ray intersections