add nChild; and add visit, ccd to output