implemented and tested new children handling