switched registers to hash table