fixed if statement in excluder method