number_of_pairs initialised