added printout functions