removed console.log on line 14 used to test output of array