clean up contract