use 'network' instead of data frame