use ensure_reg_number_seq