update model, support index