add index to badges