make sure to pad ranges to be the same length