change pin to string type