slope hist final version