start building tree in select