fix defvar to deffun