use case index instead of case property