AVOID LOOPING OVER PEAKS