changed logic to cheerio