exclude irrelevant nodes