parseChildren method