add index to model/message