changed leaving_var to a local variable in julia mode