check for visibility