refact root