the decrements were in the wrong place