fixed trace()