putting index back in