added try catch on user indexing