adding trace generator