find the peak amp window automatically