forgot to initialize the array - fixed