modified version of pattern and updated scraper to use it