added hist2d function