generate network