use arrayCriteria.getSize() for defining size of built arrays