added try statements to import the best pair couter