remove double loop in filter labels