remove some inefficiencies
when getting number of schedulers