results refactoring