added CPD calculation methods