update solution for Triangle