make module densitycurve aware of new histogram code