repleced all the value of the array structure