added adjacency matrix