changed ranking method