updating the index and past section