added numcpus call