added gpio.shutdown() at the end