enhance comment func