updated the peak class with the new interface scheme