update threshold and resync history