working on abs peak detection