added super functions for segment and ray