some visible checking optimizations