forgot to decrement B!