move array creation to from let to expr