refactoring printing part 1