modification for acknowledge computation