update triangle