fixed formatting of buffer read