added adjency matrix