create comment function