results relationship logic cleaner