fix pair output