data mapping script and changes to output