applied the filters to the code