batch
batch copied to clipboard
reduce scope of err variable
https://github.com/uber-go/guide/blob/master/style.md#reduce-scope-of-variables