added array, changed console log