change threads to # of cpu cores