get_2d_histo use global vars