ranking algorithm modified