return tags and categories correctly