fix array; now it's all working