cleaning __shared__ indexing