fixed the argument to read the network file for extracting the variables.