switched position of dist and angle, Fixes #8 earlier