maintaining the list of children in a more efficient way