fixed silly subtraction bug