cleaning up contract