reduce critical section + run go fmt