extracted filter to new file.