change formatting, add function to get nr of unique pairs