update TRAIS script