work on ray geometry utilities