smarter selector filtering