added 'reset()' method