change root of rest