divide master and workers