setting dynamic root