fixed childresult function