write category and title