update visibility of variable