weight matrix for networks too