added repetition check from rotation to rotation