refactoring and showing information