fixed wrong implementation of the rotation
cursor added