using internal pullup resistors