got pin setting working