added chart 3 functions