refactoring show for unit test