array warning fix