duplicate all-measurements as a disposable function