now using minimatch which is better