avoid concatenating the buffer when necessary