refactor categories and publish_date assignments