add support for pair type