# Unit 5 Lesson 12 Traversals Make - Question about initializing lists with dataset

**URL:** https://forum.code.org/t/unit-5-lesson-12-traversals-make-question-about-initializing-lists-with-dataset/34265
**Category:** Coding and Debugging Help
**Tags:** csp-unit-5
**Created:** [February 19, 2021, 2:31pm UTC](https://forum.code.org/t/unit-5-lesson-12-traversals-make-question-about-initializing-lists-with-dataset/34265 "2021-02-19T14:31:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mbrunner](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mbrunner/32/5271_2.png) [@mbrunner](https://forum.code.org/u/mbrunner)
#### Post date: [February 19, 2021, 2:31pm UTC](https://forum.code.org/t/unit-5-lesson-12-traversals-make-question-about-initializing-lists-with-dataset/34265/1 "2021-02-19T14:31:59Z")

</div>

Here is the code I am asking about: [Code.org - App Lab](https://studio.code.org/projects/applab/vl8kMjj7kjs3jifKj80wTBrPB6aJ_rkxnIXgEO1BgVI)

I am wondering why the console.log statement prints 1 when I am trying to see how many items are in the lists that I declared and initialized using the getColumn command.

I thought that when the program was run, the lists would be automatically populated with all the elements in the data table column.

Where is my logic wrong?

---

<div class="post-metadata">

### Author: ![jdonwells](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/jdonwells/32/7900_2.png) [@jdonwells](https://forum.code.org/u/jdonwells)
#### Post date: [February 19, 2021, 9:27pm UTC](https://forum.code.org/t/unit-5-lesson-12-traversals-make-question-about-initializing-lists-with-dataset/34265/2 "2021-02-19T21:27:57Z")

</div>

You have [] around `getColumn`.

---

<div class="post-metadata">

### Author: ![mbrunner](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mbrunner/32/5271_2.png) [@mbrunner](https://forum.code.org/u/mbrunner)
#### Post date: [February 20, 2021, 2:26pm UTC](https://forum.code.org/t/unit-5-lesson-12-traversals-make-question-about-initializing-lists-with-dataset/34265/3 "2021-02-20T14:26:13Z")

</div>

Thank you so much. So nice to have help with debugging syntax.
