these two lines can be simplified. `x/2 - y/2 = (x-y)/2`