controlling array growth