Mmmm a me sembra che i dati non vengano neanche salvati in un array, anzi vengono sovrapposti ad ogni ciclo!