update trace method