fig5-2_subtraction-routine