found the pin change bug and fixed it