changes to ranking algorithm