refactor file filtering
fix typo