testing new validation to fix the duplicate index errors