reshape multiple peaks