changed getAllPins