clean up trace