set limit in the adjacency matrix, no error anymore but still not good