changes in peak and nadir detection