an extension method to provide filtering to the queryable object