modified listcontact.c