replace TT with CODE