added peak finding