dont add inherited children to the pattern if it has it's own children