begin insert measurement implementation