write distribute