Replaced (filter #(not (...))) with (remove #(...)) at Jake McCrary's suggestion.