initialize number of workers in contructor