added index to model