tor function. Th