manage variable visibility