stack done, finish circular queue