Again initialising array before loop