control script for reduction