fixed priority queue
remove some comments