it needs to know how many threads!!!