bag to queue