started with priority queue