add judge_comment function