added for pcoa calculations