creating the routes to on/off the pins