getting pin to work