visibility mode in inheritance