update teardown code