changing comments to reflect error detection in open_index