make a right rotation
removed useless function