separating master and worker code