finished rotate and shift