fixing the array init