added peak performance code here too