taking advantage of 1D arrays: 45fps on emulator