convert refact