correct width of bar
unit-test