done degree ranking
insert degree ranking at the right place