fixed major bug, with circular dequeue,enqueue