function to add and remove contact take .sym as input