#39 create prototype for difference function