creating trees