changing handle to defvar