added pair2sequence