dealt the problem of buffer length, still has the problem with long content