added ability of getting children for paragraph