implemented diff functionality for yarp context