made network weights dependent on number of networks