vector changed to queue