moved def of file filter