refactor for updating slot when acked.