add while loop to TX