rewrote array