what if `readresult == 0`?