improve visibility test