adding roots attribute