added the num_cmps