Ranking xtend templatecode update