equalize stack and queue

-_'_-