moved chrom_filter function to util