simplify #children, #contents