incorporated num_center and num_dc into data structure