removed default value for num_cores