if visibility is true