use size_t instead of int for num_of_tip_versions