tree model init
clean cm