change to run differences function