added average plot