added initilization to network layer