improved :visible check and updated example2