added error msg for indexing...