t4 generation on the fly