only populate head_comments and foot_comments if not empty