add indexes corrected