added printout option