added support for lambda based filters