updated ArrayQueue