re-added formatting to tree structure