design the ditributed version of SW