made sure gpio variables are globals