reset function working