refactoring for Array