update for peak extraction