reset functionality now working