Ziqi convert the T * functions to boolean ones