added print statement for deleting traces in locateInvalidTraces