export with binning