refactor sendMessageAcknowledgement