add trace method