worked out retransmission logic - it works!!