optimized uv checking it is 1.6x faster now