change visibility of a property