add index to ranking