add pair support in translate