index changed to show count