added root and transitions