refactor trail ACK