print functions, merged