minor change to AMP transform_scan