print functions modified