fixing defun