minor changes to reset