end index changed