improved reset mechanism