simplify code, use Math method to convert angle to radians