add reset function and function for matrix type filters