Rotation of S is not working