made arrays and enabled cycle