change KSM_THRESHOLD to 2 instead of 5