* add getPair function to get id and name.