fix pair type