update measuring logic