add lowest common ancestor