remove array workaround and restrict the length of arrays in array must have the same length temporarily