update array problems