added method for indexing by id and begin method for indexing by  country