change resume() to reset()