adding trace