script to print results uses global macro quantities