Update the code with new filter