changing the way the avarage rank is being calculated