fixed print_message