simplify Peak
Reimplemntaion of SSP