start new implementation of printing tree