added printMode