refact relat