check for io.EOF