adapt findWhere to filter