small changes

making data getter for bar drawing