worked through arrays and hashes