changed pin 8 to pin 4