working on block rotation