added NETWORK_API before funtion definition