implemented reset command