array primitives problems