change root to path