working on distance formula, toRad formula