changed pin controller