add excluding files function