function add in bob and alice file