refactor
in array length types