get targets of nodes