add trace struct