index changed to check