added newcontact function