cleanup code on contact