first tweaks on applyFilter()