replace AngleManager and correct the calculations to convert angles