modified ExtractRt.java