Update SemanticTracing.java

method for traking refactored