refactor help