don't use builtin function name 'filter' as variable name