fix var visibility