implemented angleRobust()