expand array when reading demand matrix