solved the problem of workers and type