added simple peak picking