updated print functions