use appropriate index in model