added pair function