changing data saving method back to big array