removed redundant code, combined the reset and confirm methods