added ave function to cpp and box python plot