cleared a warning bu switching function call; not showing successful tree creation when adding file