hopefully fixing index