updating the bars