requirements and remove show peaks function