yes I did look at that example and it looked like a step in the right direction but I don't want to throw away any data. If I have say 2 counts in bin 1, 3 in bin 2 and 6 in bin 3, I want to make a wide bin that contains bins 1,2 and 3 with 11 counts. That's my new bin 1. I was trying to slipt the original array in two, then split the second half further into two, etc. That's not a very good approach. I'm looking for something more flexible.