Why would you do that, why is it needed to modify the PeaksAndMetrics object? I think pam.peaks should always be (...,n,3).