add CCC calculation and plot