more code cleanup -- index of promptsToRedo