correcting rotation