added reset status function