li-ch temp
implementation of Li's CE method