added normalise to histogram