functionality for radians and degrees