remove dubicates for all categories