update to arrays and hashes