replace categories with tags