also output all difference functions