rotate functions
Merge pull request #1 from eyadof/master

rotate functions