moved and added to canRotate facutly