implemented some methods of TFE