optimize StarTrace