error in index