rewrite peak.pl