region subtraction added