array.pop() to array.shift