replace `defmethod' with `defun' where the former is unnecessary