update for main.tt