finished master-worker and debuging