added sd indexing