fixed coordinate systems and angle resolution bugs