corrected versions; removed dependency to binning2