update tf processing related codes