small changes to TPeak