switch to hashes