updating to reflect index