fix add comment by using complex type instead of string