updated purchase code, data sources, and mapping