remove unused traces