added support for filtering lists