print func fix