refac idea