cleaning up traces