reformat triangle code