refactored ack method to use send