this handles the pause case.