remove indexNext from Env