trying with character buffer