to print unique dead ends