implemented reset-method