add kcv plotting function