trex in a court