some array problems