remove dead code from peak