reverting recent changes to trig_reduction. The previous change didn't understand the issue