rotate patter