implementing subtraction