slight change in the trapezoidal distribution and API