correctly closed index