fixed peak detection, non-one grid size broken