update source for triangle