for measuring angular position