trying to redefine index