initialized the data arrays in the 'net_update' function