modified cerate function of comment controller