filter nodes earlier