added resetToPause function
renamed function for clarity