rearranged reset command