add document to triangle