start to build tree