In the drawFrame function I changed it so it uses bar.height in calculating the bar height. Before I created a variable to hold that value which is no longer needed