working version of GPIO