improved rotation and added for multiplication