display and refactoring