changed the way measurements are added to batch