index update for lesson 6