commit modify comment logic