update main function

to set numFacilities