correct filter folders and files