automatically and internally track instance indexes