show how to fix array problem