added a difference function that may work