added degInRad function