can't see any reason for Max(1,numBrel)...if numBrel is zero these blocks should not be used in any case