the buffer is filled correctly