do not use map to store children. children are a simple flat list.