update
new function for locating invalid traces