initalized the network