added reset function to header file