now the filtering works