refactor to uv indices sempling