update main for 8 term