added a reset feature