correcting the angle change