make offset measurement switchable