pass right file to filter