added the print and info functions