replace left & right to children[]