modify trace structure