it changes the array