This line is called multiple times as  we keep adding indices. It could be called once at the end of the loop I guess.