added some rotation functionality