fixed thinkingmistake with indices in isolated