fix variable visibility ~~