fix logic of filtering recs