add trace function call