change to cope with the 2D binning