added resetTransform method and logic