adjacense matrix works now