still a minor bug in getAngles