distributed code working