added functionality of pin adding