changed distribution.h and all instances to integrate