filter better handles scoping