updated size function to accommodate new interval
packaged for distribute