added root.R