Variable g is also 2 less than w

g = w - 2