peak detection improving