make pcca and pccaP size adaptive