refactory
complete print_invoice