added reset function for filter