implement ROTATE COPYN