trying to get the bar to work