added active vb count check