combine codes to print()