modify fnmatch