readded fixes for >= 360 and < 0