changing array length caveat