modified the sending ack action when receiving a data message