add contact function.