update for trm library