trace generator prototype