add a function to help identify unique predecessors