refactor help method