added Pins fucntion