removed main from CTree