first attempt at fixing the index. Still includes a debugging Serial.println().