looks like root is not used, you could just return root. It's a minor nitpick