improve file filter