now solid body rotation, rearranged code