ctree refactory, starting to test ctree seriously, many other things related with var names