TH functionality, INLINE  functions