adding peak finding for scan