simple refactor