detect bad bar lengths
detect bad bar lengths