added indexing to schema