check returned size by read/write with just as doc
adjust space