simpler 2d_histo funcr