subtraction functionality