printTrace comments modified