generate comment function