chart 1 seems to be working, will look into it more later