fixed positioning and changed pivot for rotation