adding RemoveRoot for compression