moved minimum distance between bars to constants.h