updated look at rotation code