changed pin index