update for trm code(