add excludeFiles method
refactaring filter codes