added a clear status function