peak detection and drawing works :)