fitting: only use datapoints near peak maxima