updates to ranking algorithm.