added more reset vars for rotation and pencil