cdhistlog and initialize func added