change data structure to queue