array problem fixed