adding is pointer = 1 to finish transmit