add diagram with yarp functions