update format of Triangle