inserted PRIMARY_THRESHOLD for evading 'bad' minimas.