second version of cutting up programs