update message function and network