add diagram source