worked on difference function