modify peak predice logic