assign categories and tags