enable send and receive data function