trying to get printing the character buffer to work