update contact and cleanup