added the "ht" processing function template