much simpler way of iterating through tex0,tex1,tex2