update B quatity