made a rotate(deg,element) function