updated index according to instructions