replace new array by []