made the bar exit more smooth