added subtraction for ret statements