update TE code for partial TS