array working better