new function for locating invalid traces