automated the creation of the tes sequence