reorganize traces