Rewrote array as int