changed algo to filter based on favs