added reset functionality