use equal? instead of == in filter_threads