changed to internal pull up resistor