good angles and distance calculations