pattabhi- renamed user_index to index