move initialization after GPIO.setup