refactory for contactManager