create a separate show_message function