building up trees: compare, follow, insert
remove some debugging statements