convert remaining prn functions to defun form.