change child1 to index child