totally rearranged code in initial outerBedBin functions