modify arrayqueue