selection of bar type