add new bar plot code