add index to features