work on bar plot