add commit when saving measurement