inserted peakCap as an intermediate container for peak