read from num_centers